package com.djzhou.gmms.model.role;

import java.io.Serializable;
import java.util.Date;

import com.djzhou.gmms.model.company.TbCompany;
import com.djzhou.gmms.model.department.TbDepartment;
import com.djzhou.gmms.model.entity.Entity;
import com.djzhou.gmms.model.user.TbUser;



public class TbRole extends Entity implements Serializable{

	private static final long serialVersionUID = 1L;
	private Integer roleId;//角色ID
	private String roleName;//角色名称
	private String roleNo;//角色编码
	private Date createTime;//创建时间
	private Date lastModifyTime;//最后修改时间
	private Integer deleteFlag;//删除标识
	private String remark;//备注
	private String backupData;//备份数据
	
	private Integer companyAuthorityFlag;//是否开启公司级层级权限
	private Integer depAuthorityFlag;//是否开启部门级层级权限
	
	private Integer allCompanyAuthorityFlag;//是否开启公司级全部层级权限
	private Integer allDepAuthorityFlag;//是否开启部门级全部层级权限
	
	
	private TbCompany company;//所属公司
	private TbDepartment department;//所属部门
	private TbUser user;//操作人
	
	public Integer getRoleId() {
		return roleId;
	}
	public void setRoleId(Integer roleId) {
		this.roleId = roleId;
	}
	public String getRoleName() {
		return roleName;
	}
	public void setRoleName(String roleName) {
		this.roleName = roleName;
	}
	public String getRoleNo() {
		return roleNo;
	}
	public void setRoleNo(String roleNo) {
		this.roleNo = roleNo;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	public Date getLastModifyTime() {
		return lastModifyTime;
	}
	public void setLastModifyTime(Date lastModifyTime) {
		this.lastModifyTime = lastModifyTime;
	}
	public Integer getDeleteFlag() {
		return deleteFlag;
	}
	public void setDeleteFlag(Integer deleteFlag) {
		this.deleteFlag = deleteFlag;
	}
	public String getRemark() {
		return remark;
	}
	public void setRemark(String remark) {
		this.remark = remark;
	}
	public String getBackupData() {
		return backupData;
	}
	public void setBackupData(String backupData) {
		this.backupData = backupData;
	}
	public Integer getCompanyAuthorityFlag() {
		return companyAuthorityFlag;
	}
	public void setCompanyAuthorityFlag(Integer companyAuthorityFlag) {
		this.companyAuthorityFlag = companyAuthorityFlag;
	}
	public Integer getDepAuthorityFlag() {
		return depAuthorityFlag;
	}
	public void setDepAuthorityFlag(Integer depAuthorityFlag) {
		this.depAuthorityFlag = depAuthorityFlag;
	}
	public TbCompany getCompany() {
		return company;
	}
	public void setCompany(TbCompany company) {
		this.company = company;
	}
	public TbDepartment getDepartment() {
		return department;
	}
	public void setDepartment(TbDepartment department) {
		this.department = department;
	}
	public TbUser getUser() {
		return user;
	}
	public void setUser(TbUser user) {
		this.user = user;
	}
	public Integer getAllCompanyAuthorityFlag() {
		return allCompanyAuthorityFlag;
	}
	public void setAllCompanyAuthorityFlag(Integer allCompanyAuthorityFlag) {
		this.allCompanyAuthorityFlag = allCompanyAuthorityFlag;
	}
	public Integer getAllDepAuthorityFlag() {
		return allDepAuthorityFlag;
	}
	public void setAllDepAuthorityFlag(Integer allDepAuthorityFlag) {
		this.allDepAuthorityFlag = allDepAuthorityFlag;
	}
	
	


}